package models

type Trader struct {
	Id int `json:"id"`
	ApiKey string `json:"api_key"`
	SecretKey string `json:"secret_key"`
	Passphrase string `json:"passphrase"`
	Exchange string `json:"exchange"` //交易所
	//一对一
	AccountAsset AccountAsset `json:"account_asset"`	//总资产
	//一对多
	Orders	[]Order `gorm:"ForeignKey:id;AssociationForeignKey:id" json:"orders"`	//订单id
}
